package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 38917
 * Date: 2025-02-17
 * Time: 14:00
 */
public class test {
    public static void main(String[] args) {
        Person person1 = new Person(10);
        Person person2 = new Person(10);
        Person person3 = new Person(10);

        HashBuck<Person,Integer> hashBuck = new HashBuck<>();
        hashBuck.put(person1,1);
        hashBuck.put(person2,2);
        hashBuck.put(person3,3);
        System.out.println(hashBuck.get(person1));
//        hashBuck.put(person1,4);
//        hashBuck.put(person1,"李四");
//        hashBuck.put(person1,"李四");
//        hashBuck.put(person1,"李四");
//        hashBuck.put(person1,"李四");
//        hashBuck.put(person1,"李四");
//        hashBuck.put(person1,"李四");
        System.out.println(hashBuck.useSize);
//        System.out.println(hashBuck.get(person1));
//        System.out.println(hashBuck.get(person2));
    }
}
